<ion-view view-title="所有消息" id="message-list" hide-nav-bar="true">
  <ion-header-bar align-title="center" class="bar-calm">
    <div class="buttons">
      <button class="button head-button button-clear center-btn" ng-click="goBack()">
        <img src="img/order-commit/backIcon.png">
      </button>
    </div>
    <h1 class="title">所有消息</h1>
  </ion-header-bar>
  <ion-content>
    <ion-refresher
        pulling-text="下拉刷新..."
        on-refresh="doRefresh()">
    </ion-refresher>

    <swipe-list items="messageList" item-click="pick" item-remove="remove" need-on-line="false"></swipe-list>

    <ion-infinite-scroll
        ng-if="canLoadMore()"
        distance="1%"
        immediate-check=false
        on-infinite="loadMore()">
    </ion-infinite-scroll>
  </ion-content>
</ion-view>
